import axios from "axios";
const requerts = axios.create({
    // 基础路径
    //baseURL:'http://192.168.1.100:7777/',
    // baseURL:'http://172.20.10.9:7777/',
     baseURL:'http://192.168.43.154:7777/',
    // baseURL:'http://192.168.200.1:7777/',
    //baseURL:'http://127.0.0.1:7777/',
    //baseURL:'http://192.168.72.1:7777/',
    timeout:9000
});
requerts.interceptors.request.use((config) => {
    return config;
}, error =>{
    console.log(error);
    //对请求错误做什么
    return Promise.reject(error);
});
requerts.interceptors.response.use((response) => {
    return response;
},(error) => {
    console.log(error);
    return Promise.reject(new Error('faile'));
});
export default requerts;
